<template>
  <div class="ForgetPassword">
    <div class="ForgetPasswordHerder">
      <el-steps :active="ShowBody" class="Steps">
        <el-step title="填写账户"></el-step>
        <el-step title="新密码设置"></el-step>
        <el-step title="修改成功"></el-step>
      </el-steps>
    </div>
    <div class="ForgetPasswordBody">
      <div v-if="ShowBody===1" class="AccountCompletion">
        <el-row>
          <el-col :span="8">
            <span class="PhoneNumberSpan">手机号码</span>
            <span class="PhoneNumberSpanColor"> * </span>
          </el-col>
          <el-col :span="16">
            <div class="PhoneNumber">
              <input type="text" placeholder="请输入手机号码">
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <span class="VerificationSpan">验证码</span>
            <span class="VerificationColor"> * </span>
          </el-col>
          <el-col :span="8">
            <div class="Verification">
              <input type="text" placeholder="验证码">
            </div>
          </el-col>
          <el-col :span="4">
            <el-button type="primary" class="SMSVerificationCode" size="small">获取验证码</el-button>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-button class="cancel">取消</el-button>
          </el-col>
          <el-col :span="12">
            <el-button type="primary" class="Determine" @click="Verifications">确定</el-button>
          </el-col>
        </el-row>
      </div>
      <div v-if="ShowBody===2" class="SetNewPassword">
        <el-row>
          <el-col :span="8">
            <span class="PasswordSpan">新密码</span>
            <span class="PasswordSpanColor"> * </span>
          </el-col>
          <el-col :span="16">
            <div class="PasswordNumber">
              <input type="password" placeholder="请输入密码">
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="8">
            <span class="PasswordSpan">重复密码</span>
            <span class="Password2SpanColor"> * </span>
          </el-col>
          <el-col :span="16">
            <div class="PasswordNumber">
              <input type="text" placeholder="请确认密码">
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-button class="cancel">取消</el-button>
          </el-col>
          <el-col :span="12">
            <el-button type="primary" class="Determine" @click="SetPassword">确定</el-button>
          </el-col>
        </el-row>
      </div>
      <div v-if="ShowBody===3" class="ModifiedSuccess">
          <div>
            <p><i class="iconfont iconselectfill"></i> 您的密码已重置成功</p>
            <el-button type="primary">立即登录</el-button>
          </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ForgetPassword',
  data () {
    return {
      ShowBody: 1
    }
  },
  methods: {
    Verifications: function () {
      this.ShowBody = 2
    },
    SetPassword: function () {
      this.ShowBody = 3
    }
  }
}
</script>

<style scoped>
  .ForgetPassword {
    width: 100%;
    height: 100%;
  }

  .ForgetPasswordHerder {
    width: 100%;
    margin-top: 5%;
    padding-bottom: 20px;
    border-bottom: 1px solid #E4E4E4;
  }

  .Steps {
    width: 50%;
    position: relative;
    transform: translateX(50%);
  }

  .ForgetPasswordBody {
    width: 50%;
    top: 10%;
    position: relative;
    transform: translateX(46%);
  }

  .AccountCompletion {
    width: 100%;
  }

  .el-row {
    margin-top: 15px;
  }

  .PhoneNumberSpan, .PhoneNumberSpanColor, .VerificationSpan, .VerificationColor,.PasswordSpan,.PasswordSpanColor,.Password2SpanColor {
    float: right;
    margin-right: 2px;
    margin-top: 6px;
  }

  .PhoneNumberSpanColor,.PasswordSpanColor,.Password2SpanColor,.VerificationColor {
    color: red;
  }

  .PhoneNumber ,.PasswordNumber{
    height: 30px;
    width: 70%;
    margin-left: 10px;
    border: 1px solid #E4E4E4;
    border-radius: 5px;
    display: flex;
  }

  .PhoneNumber > input ,.PasswordNumber > input{
    width: 80%;
    margin-left: 12px;
  }

  .Verification {
    height: 30px;
    width: 90%;
    margin-left: 10px;
    border: 1px solid #E4E4E4;
    border-radius: 5px;
    display: flex;
  }

  .Verification > input {
    width: 80%;
    margin-left: 12px;
  }

  .SMSVerificationCode {
    width: 86%;
    margin-left: 4px;
  }

  .cancel {
    height: 45px;
    width: 40%;
    float: right;
    margin-right: 5px;
  }

  .Determine {
    height: 45px;
    width: 40%;
    float: left;
    margin-left: 5px;
  }
  .ModifiedSuccess{
    text-align: center;
  }
</style>
